#ifndef WIDGET_IR_H
#define WIDGET_IR_H

#include <QWidget>
#include <QGridLayout>
#include <QPushButton>
#include <QLabel>
#include "audiodataprocess.h"

class Widget_IR : public QWidget
{
    Q_OBJECT

public:
    Widget_IR(AudioDataProcess *adp, QWidget *parent = nullptr);
    ~Widget_IR();

private:
    QWidget     *widget_main;
    QGridLayout *layout_main;
    QPushButton *btn_open_ir;
    QPushButton *btn_open_src;
    QPushButton *btn_play_src;
    QPushButton *btn_play_res;
    QLabel      *lab_ir_path;
    QLabel      *lab_src_path;
    AudioDataProcess *audio_process;

signals:
    // void open_audio_file(const QString &);
    void create_file(void);
    void update_progress(int prog);

private slots:
    void btn_click_open_src(void);
    void btn_click_open_ir(void);
    void btn_click_play_src(void);
    void btn_click_play_res(void);

    void compute_progress(void);

};
#endif // WIDGET_IR_H
